/**
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 *
 */
'use strict';

var React = require('React');
var {
	requireNativeComponent
} = require('react-native');

var RCTMTDView = requireNativeComponent('RCTMTDView');

var {
	Log
} = require('react-native-yankai-utils');

var PropTypes = React.PropTypes;

module.exports = React.createClass({

	propTypes: {
		scaleX: PropTypes.number,
		scaleY: PropTypes.number,
		translateX: PropTypes.number,
		translateY: PropTypes.number,
		rotation: PropTypes.number,
		text: PropTypes.string,
		style: PropTypes.object,
	},

	getDefaultProps: function() {
		return {
			alpha: 1,
			orientation: 1,
		}
	},

	render: function() {
		var props = {};
		for (var key in this.props) {
			props[key] = this.props[key];
		}

		//Log.error(props);

		// delete(props.children);
		// Log.error(props);
		return <RCTMTDView {...props
		}
		/>
	}
})